<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    // 1- window对像下的属性
    // console.log(window.localStorage)

    console.log(localStorage.username)
    console.log(localStorage["username"])
    console.log(localStorage.getItem("username"))

    console.log(localStorage.getItem("age"))
    console.log(localStorage.getItem("sex"))
</script>
</html>